package com.inforich.app.api.controller.building;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.inforich.building.domain.RubbishType;
import com.inforich.building.service.IRubbishTypeService;
import com.inforich.common.core.domain.AjaxResult;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: some desc
 * @author: HJM
 * @date: 2022/10/29
 */
@RestController
@RequestMapping("/h5api/building/rubbishType")
public class AppRubbishTypeController {

  @Autowired
  private IRubbishTypeService rubbishTypeService;

  /**
   * 树
   */
  @GetMapping("/treeByCode")
  public AjaxResult selectBuildingTypeTreeListByCode(String code) {
    return AjaxResult.success(rubbishTypeService.selectRubbishTypeTreeListByCode(code));
  }

}
